import {getUserInfo} from "../api/my";

export default {
    data() {
        return {}
    },
    computed: {
        userInfo() {
            return this.$store.state.auth.userInfo
        },
    },
    onShow() {
        this.getUserInfoData()
    },
    created() {

    },
    methods: {
        getUserInfoData() {
            getUserInfo().then(res => {
                this.$store.commit('auth/SET_USERINFO_DATA', res.data)
            })
        },
    },
}